package com.ht.service;

import com.ht.bean.Emp;
import com.ht.bean.Holiday;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectKey;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

public interface HolidayService {

    boolean addApplay(Holiday holiday);

    //查询我的申请单
    public List<Holiday> selHoliday(String empId);

    public Holiday findObjById(Integer holidayId);

    //更改表单状态
    public boolean updHoliday(Holiday holiday);

    String selectempName(String empId);

    String selectempName2();

    List<Map> selectHoliday(Integer startIndex,Integer pageSize,Emp emp,Holiday holiday);

    //查询数据数量
    int countEmp(Emp emp, Holiday holiday);

    List<Emp> empList();

    //删除员工请假信息
    boolean deleteHolidayId(Integer holidayId);

    List<Map> LookHolidayContent(Integer holidayId);
}
